<%@ page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>取消巡检计划</title>
	<t:base type="jquery,easyui,tools,DatePicker"></t:base>
	<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
function subCallback(data){
	if(data.success){
		window.top.$("#maintabs").tabs({
			onBeforeClose : function(title,index){
				try {
					window.top.$("#maintabs").tabs('select','巡检计划管理');
					window.top.tip(data.msg);
					if(top.myTabWin.reloadTable()){
						top.myTabWin.reloadTable();
					}
				} catch (e) {
				} finally{
					return true;
				}
			}
		});
		window.top.$("#maintabs").tabs('close','巡检计划详情');
	}
	window.top.tip(data.msg);
	frameElement.api.close();
}
</script>
</head>
<body style="overflow:hidden;" scroll="no">
<t:formvalid formid="cancelIpForm" action="zyInspectionPlanController.do?doUpdate" dialog="false" layout="table" tiptype="3" callback="subCallback">
	<input type="hidden" value="${id }" name="id" id="id"/>
	<input type="hidden" value="<%=StaticValue.DIC_PLAN_OPERATION_TYPE_CANCEL%>" name="operationType" id="operationType"/>
	<table>
		<tr>
			<td style="width: 60px;">
				<label>取消原因:</label>
			</td>
			<td>
				<textarea name="remark" style="width: 410px;height: 170px;" datatype="*" nullmsg="填写取消原因"></textarea>
			</td>
		</tr>
	</table>
	<input type="hidden" id="btn_sub" class="btn_sub"/><%-- 因为设置了 dialog=false 这里需要手动加入隐藏id为btn_sub 做提交用 --%>
</t:formvalid>
</body>